/**      
 * @file		nestedAgain.cpp
 * @description		Demonstrates a nested for loop. Notice that
 *			the variable total has the main function as
 *			its scope. Thus it can be accessed from within
 *			the for loops and outside the for loops.
 * @course		CSCI 123 Section 00000
 * @assignment		Sample 12
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
using namespace std;

/**
 * @return zero if the application executes successfully
 */
int main() {

	int total = 0;
	for(int j = 0; j < 5; j++) {
		cout << "outer: j is " << j << endl;
		for(int i = 4; i > 0; i--) {			
			cout << "\tinner: i is " << i << endl;
			total++;
		}
	}

	cout << total << endl;

	return 0;
}
